import express from 'express'
import { createRoom, getRoomById, getRooms } from '../controllers/room.controller'
import { auth } from '../middleware/auth'

const router = express.Router()

router.post('/', auth, createRoom)
router.get('/', getRooms)
router.get('/:id', getRoomById)

export default router
